package com.item.controller;


import com.item.entity.Item;
import com.item.service.IItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lzx
 * @since 2022-01-15
 */
@SuppressWarnings("all")
@RestController
@RequestMapping("/item")
public class ItemController {
    @Autowired
    private IItemService iItemService;

    @GetMapping("/allFind")
    public  List<Item> findAll(){
      List<Item>  itemList=iItemService.findAll();
      return itemList;
    }
}
